package net.y2t72.microblog.biz.impl;

import net.y2t72.microblog.bean.Member;
import net.y2t72.microblog.biz.MemberBiz;
import net.y2t72.microblog.dao.MemberDao;
import net.y2t72.microblog.dao.impl.MemberDaoImpl;


/**
 * 会员表业务逻辑实现类
 * @author Administrator
 *
 */

public class MemberBizImpl implements MemberBiz {
	
	// 创建会员访问对象
	MemberDao memberDao = new MemberDaoImpl();
	
	/**
	 *  根据用户名查询用户信息
	 * @param userName  会员邮箱
	 * @return			会员对象
	 * @author 			任小斌
	 */
	public Member findMember(String email){
		
		return memberDao.findMember(email);
	} 
	/**
	 *  添加用户信息
	 * @param member   会员对象
	 * @return		        影响的行数
	 * @author 		       任小斌
	 */
	public int addMember(Member member){
		
		return memberDao.addMember(member);
	}
	 /**
	   * 根据id查找会员信息
	   * @author 郭建伟
	   */
	@Override
	public Member SeachMember(int memId) {
		return memberDao.SeachMember(memId);
	}
	  /**
	   * 根据id修改基本信息
	   * @author 郭建伟
	   */
	@Override
	public int updateMember(Member member, String state) {
		return memberDao.updateMember(member, state);
	}

}
